package com.wyh.domain.dto.gfive;

import java.util.ArrayList;
import java.util.List;

public class PermissionNode {
    private int id;
    private String name;
    private String authority;
    private String resource;
    private int state;
    private String menu;
    private String expression;
    private int fatherid;
    private List<PermissionNode> children = new ArrayList<>();

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthority() {
        return authority;
    }

    public void setAuthority(String authority) {
        this.authority = authority;
    }

    public String getResource() {
        return resource;
    }

    public void setResource(String resource) {
        this.resource = resource;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getMenu() {
        return menu;
    }

    public void setMenu(String menu) {
        this.menu = menu;
    }

    public String getExpression() {
        return expression;
    }

    public void setExpression(String expression) {
        this.expression = expression;
    }

    public int getFatherid() {
        return fatherid;
    }

    public void setFatherid(int fatherid) {
        this.fatherid = fatherid;
    }

    public List<PermissionNode> getChildren() {
        return children;
    }

    public void setChildren(List<PermissionNode> children) {
        this.children = children;
    }

    public PermissionNode(int id, String name, String authority, String resource,
                          int state, String menu, String expression, int fatherid) {
        this.id = id;
        this.name = name;
        this.authority = authority;
        this.resource = resource;
        this.state = state;
        this.menu = menu;
        this.expression = expression;
        this.fatherid = fatherid;
        this.children = children;
    }
}
